package gov.kqqzyyy.monkey.orderpad.object.post_param;

import org.apache.commons.codec.binary.Hex;
import org.apache.commons.codec.digest.DigestUtils;

public class UserLoginParam {
    private String username;
    private String password;

    public UserLoginParam(String username, String password) {
        this.username = username;
        this.password = new String(Hex.encodeHex(DigestUtils.md5(password)));
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = new String(Hex.encodeHex(DigestUtils.md5(password)));
    }
}
